<?php
/**
 * Created by PhpStorm.
 * User: Lebeyond
 * Date: 2020/9/22
 * Time: 15:14
 */
# --------------------------------
# 登录相关 不需要权限校验
# --------------------------------
use think\facade\Route;
Route::group('pda', function () {

    #来料确认
    Route::post('receiveconfirm/lists', 'pda/ReceiveConfirm/lists');//列表
    Route::post('receiveconfirm/detail', 'pda/ReceiveConfirm/detail');//详情
    Route::post('receiveconfirm/save', 'pda/ReceiveConfirm/save');//暂时保存
    Route::post('receiveconfirm/submit', 'pda/ReceiveConfirm/submit');//提交

    #来料检验
    Route::post('receivecheck/lists', 'pda/ReceiveCheck/lists');//列表
    Route::post('receivecheck/detail', 'pda/ReceiveCheck/detail');//详情
    Route::post('receivecheck/save', 'pda/ReceiveCheck/save');//保存
    Route::post('receivecheck/submit', 'pda/ReceiveCheck/submit');//提交

    #来料入库
    Route::post('receivein/lists', 'pda/ReceiveIn/lists');//列表
    Route::post('receivein/detail', 'pda/ReceiveIn/detail');//详情
    Route::post('receivein/save', 'pda/ReceiveIn/save');//保存
    Route::post('receivein/submit', 'pda/ReceiveIn/submit');//提交

    #即时库存
    Route::get('inventory/materialinventory', 'pda/Inventory/getMaterialInventory');

    #生产订单详情
    Route::get('prdmo/info', 'pda/PrdMo/info');
    Route::post('prdmo/mo2instock', 'pda/PrdMo/mo2Instock');
    
    #仓库仓位
    Route::get('stock/list', 'pda/Stock/list');
    Route::get('stock/flexlist', 'pda/Stock/flexList');
    
    #直接调拨单
    Route::get('stktransferdirect/info', 'pda/StkTransferDirect/info');
    Route::post('stktransferdirect/submit', 'pda/StkTransferDirect/submit');

    //生成任务单
    Route::rule('/ProTask/index', 'pda/ProTask/index', 'GET|POST');
    Route::rule('/ProTask/saveTask', 'pda/ProTask/saveTask', 'GET|POST');
    //Route::rule('/ProTask/getFEntity', 'pda/ProTask/getFEntity', 'GET|POST');

    // 发货通知单
    Route::rule('/salDeliveryNotice/deliveryNoticeInfo', 'pda/SalDeliveryNotice/deliveryNoticeInfo', 'GET|POST');
    Route::rule('/salDeliveryNotice/deliveryNoticeHold', 'pda/SalDeliveryNotice/deliveryNoticeHold', 'GET|POST');
    Route::rule('/salDeliveryNotice/salOutstock', 'pda/SalDeliveryNotice/salOutstock', 'GET|POST');

    Route::rule('/ProTask/getMaterialCode', 'pda/ProTask/getMaterialCode', 'GET|POST');

    //首页统计
    Route::rule('/home/count', 'pda/Home/allCount', 'GET|POST');

})->middleware(['AdminAuth']);